package com.yanqu.road.logic.activity.hotpotjump.game.choose;

import com.yanqu.road.logic.activity.hotpotjump.game.JumpBoardGrid;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 4 当前攻击路径的所有点
 */
public class HotpotJumpSkillChoose4 extends HotpotJumpSkillChoose {
    @Override
    public List<List<JumpBoardGrid>> chooseGrid() {
        List<List<JumpBoardGrid>> result = new ArrayList<>();
        if (gameLogic.getAllMoveGrids().isEmpty()) {
            return result;
        }
        List<JumpBoardGrid> grids = new ArrayList<>();
        List<JumpBoardGrid> lastPath = gameLogic.getAllJumpPathGrids().get(gameLogic.getAllJumpPathGrids().size() - 1);
        for (int i = 0; i < lastPath.size() - 1; i++) {
            grids.add(lastPath.get(i));
        }
        result.add(grids);

        return result;
    }
}
